package com.example.yls.wuziqi;

import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.Menu;
import android.view.View;
import android.widget.Button;

public class MainActivity extends AppCompatActivity {

    private WuziqiaView wuziqiPanel;
    private Button btnAginGame;
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
        wuziqiPanel = findViewById(R.id.id_wuziqiView);
        btnAginGame = findViewById(R.id.btn_agin);
        btnAginGame.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View view) {
                wuziqiPanel.agin();
            }
        });
        Student student = new Student();
        student.setName("老板");
        student.setAge(15);
    }

}
